<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="${namespace}">
<#if resultMaps??>
    <#list resultMaps as resultMap>
        <resultMap type="${resultMap.type}" id="${resultMap.id}">
            <#if resultMap.idResult??>
                <id column="${resultMap.idResult.map.column}" property="${resultMap.idResult.map.property}"/>
            </#if>
            <#if resultMap.result??>
                <#list resultMap.result.maps as map>
                    <result column="${map.column}" property="${map.property}"/>
                </#list>
            </#if>
        </resultMap>
    </#list>
</#if>
</mapper>